package com.xx.ch07.demo.demo06;

import com.xx.ch07.demo.demo01.SysUser1;
import com.xx.ch07.demo.demo02.SysUser;

import java.util.List;

/**
 * @author 许欣
 * 时间：2022/4/18 10:38
 * 描述：
 */
public class SysUserMapperImpl<SqlSessionTemplate> implements SysUser {
    private SqlSessionTemplate sqlSessionTemplate;

    @Override
    public List<SysUser1> selectSysUserList(SysUser1 sysUser) {
        return (List<SysUser1>) sqlSessionTemplate;
    }

    public SqlSessionTemplate getSqlSessionTemplate() {
        return sqlSessionTemplate;
    }

    @Override
    public boolean add(SysUser1 sysUser1) {
        return false;
    }

    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }
}
